//
//  TMHttpUserInstance.h
//  TMSDK
//
//  Created by mac on 2021/4/30.
//  Copyright © 2021 Summer. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface TMHttpUserPointConfig : NSObject

@property (nonatomic, copy) NSString *first_login;
@property (nonatomic, copy) NSString *sex;
@property (nonatomic, copy) NSString *birthday;
@property (nonatomic, copy) NSString *mobile;
@property (nonatomic, copy) NSString *wb;
@property (nonatomic, copy) NSString *wx;
@property (nonatomic, copy) NSString *qq;
@property (nonatomic, copy) NSString *sign;
@property (nonatomic, copy) NSString *sign_cycle_first;
@property (nonatomic, copy) NSString *sign_cycle_two;
@property (nonatomic, copy) NSString *sign_extra_two;
@property (nonatomic, copy) NSString *sign_extra_first;
@property (nonatomic, copy) NSString *first_login_switch;
@property (nonatomic, copy) NSString *perfect_information_switch;
@property (nonatomic, copy) NSString *sign_switch;
@property (nonatomic, copy) NSString *apple;

@end




@interface TMHttpUserInstance : NSObject<NSCoding,NSCopying>

@property (nonatomic, strong) NSDictionary *loginInfo;

@property (nonatomic, copy) NSString *birthday;
@property (nonatomic, copy) NSString *create_time;
@property (nonatomic, assign) BOOL deleted;
@property (nonatomic, copy) NSString *email;
@property (nonatomic, copy) NSString *head_pic;
@property (nonatomic, copy) NSString *member_code;
@property (nonatomic, assign) int member_id;
@property (nonatomic, copy) NSString *member_name;
@property (nonatomic, copy) NSString *member_sn;
@property (nonatomic, copy) NSString *member_nickname;
@property (nonatomic, copy) NSString *member_real_name;
@property (nonatomic, copy) NSString *mobile;
@property (nonatomic, copy) NSString *qq;
@property (nonatomic, copy) NSString *qqOpenID;
@property (nonatomic, copy) NSString *wx;
@property (nonatomic, copy) NSString *wxOpenID;
@property (nonatomic, copy) NSString *wb;
@property (nonatomic, copy) NSString *wbOpenID;
@property (nonatomic, copy) NSString *zfb;
@property (nonatomic, copy) NSString *apple;
@property (nonatomic, assign) int sex;
@property (nonatomic, copy) NSString *site_code;
@property (nonatomic, copy) NSString *ip;
@property (nonatomic, assign) NSInteger point;
@property (nonatomic, assign) int status;
@property (nonatomic, assign) int user_flag;
@property (nonatomic, assign) int user_id;
@property (nonatomic, assign) BOOL is_first_login;
@property (nonatomic, copy) NSString *channel_sources;

@property (nonatomic , strong) TMHttpUserPointConfig *point_config;

+ (TMHttpUserInstance *)instance;
+ (instancetype)sharedManager;

//销毁数据
+ (void)terminateInstance;
//持久化数据
+ (void)persist;
//保存用户信息
- (void)setLoginInfo:(NSDictionary *)loginInfo;
//设置极光推送别名
- (void)setUserJpushAlias:(NSString *)alias;
//删除极光推送别名
- (void)deleteUserJpushAlias;
@end

NS_ASSUME_NONNULL_END
